package com.duo.constant;

/**
 * @Author: Xrx
 * @Description:
 * @CreateTime: 2023/7/14 20:56
 */
public class GlobalConstant {

    /**
     * JWT 过期时间 (7天)
     */
    public static final long TIME = 7 * 24 * 60 * 60 * 1000L;

    /**
     * JWT 秘钥
     */
    public static final String SIGNATURE = "fdszguikfhdsiufhsldfiaaa";

    /**
     * token 管理端缓存名
     */
    public static final String ADMIN_TOKEN_PREFIX = "admin:token:";

    /**
     * token 缓存名
     */
    public static final String TOKEN_PREFIX = "user:token:";

    /**
     * 菜品前缀
     */
    public static final String DISH_PREFIX = "dish:user:";

    /**
     * 购物车过期时间(一天)
     */
    public static final long DISH_EXPIRE_TIME = 24 * 60 * 60 * 1000L;
}
